package com.example.expandablelistdemo;

import java.util.ArrayList;
import java.util.List;

public class Util {

	public static List<ForumData> getData(){
		List<ForumData> forumList = new ArrayList<ForumData>();
		List<ForumData> list_c1 = new ArrayList<ForumData>();
		List<ForumData> list_c2 = new ArrayList<ForumData>();
		List<ForumData> list_c3 = new ArrayList<ForumData>();
		List<ForumData> list_c4 = new ArrayList<ForumData>();
		
		ForumData pf_1 = new ForumData();
		pf_1.setId("1");
		pf_1.setName("测试1");
		pf_1.setDataList(list_c1);
		ForumData pf_2 = new ForumData();
		pf_2.setId("2");
		pf_2.setName("测试2");
		pf_2.setDataList(list_c2);
		ForumData pf_3 = new ForumData();
		pf_3.setId("3");
		pf_3.setName("测试3");
		pf_3.setDataList(list_c3);
		ForumData pf_4 = new ForumData();
		pf_4.setId("4");
		pf_4.setName("测试4");
		pf_4.setDataList(list_c4);
		forumList.add(pf_1);
		forumList.add(pf_2);
		forumList.add(pf_3);
		forumList.add(pf_4);
		
		ForumData cf_11 = new ForumData();
		cf_11.setId("11");
		cf_11.setName("测试子类c11");
		ForumData cf_12 = new ForumData();
		cf_12.setId("12");
		cf_12.setName("测试子类c12");
		ForumData cf_13 = new ForumData();
		cf_13.setId("13");
		cf_13.setName("测试子类c13");
		list_c1.add(cf_11);
		list_c1.add(cf_12);
		list_c1.add(cf_13);
		
		ForumData cf_21 = new ForumData();
		cf_21.setId("21");
		cf_21.setName("测试子类c21");
		ForumData cf_22 = new ForumData();
		cf_22.setId("22");
		cf_22.setName("测试子类c22");
		list_c2.add(cf_21);
		list_c2.add(cf_22);
		
		ForumData cf_31 = new ForumData();
		cf_31.setId("31");
		cf_31.setName("测试子类c31");
		ForumData cf_32 = new ForumData();
		cf_32.setId("32");
		cf_32.setName("测试子类c32");
		list_c3.add(cf_31);
		list_c3.add(cf_32);
		
		ForumData cf_41 = new ForumData();
		cf_41.setId("41");
		cf_41.setName("测试子类c41");
		ForumData cf_42 = new ForumData();
		cf_42.setId("42");
		cf_42.setName("测试子类c42");
		list_c4.add(cf_41);
		list_c4.add(cf_42);
		
		return forumList;
	}
	
}
